package qldc.pm.tienan.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import qldc.pm.tienan.model.YeuCauTrichLuc;

import java.util.List;

/**
 * The persistence utility for the yeu cau trich luc service. This utility wraps {@link YeuCauTrichLucPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see YeuCauTrichLucPersistence
 * @see YeuCauTrichLucPersistenceImpl
 * @generated
 */
public class YeuCauTrichLucUtil {
    private static YeuCauTrichLucPersistence _persistence;

    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
     */

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
     */
    public static void clearCache() {
        getPersistence().clearCache();
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
     */
    public static void clearCache(YeuCauTrichLuc yeuCauTrichLuc) {
        getPersistence().clearCache(yeuCauTrichLuc);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
     */
    public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
        throws SystemException {
        return getPersistence().countWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
     */
    public static List<YeuCauTrichLuc> findWithDynamicQuery(
        DynamicQuery dynamicQuery) throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
     */
    public static List<YeuCauTrichLuc> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end)
        throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
     */
    public static List<YeuCauTrichLuc> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end,
        OrderByComparator orderByComparator) throws SystemException {
        return getPersistence()
                   .findWithDynamicQuery(dynamicQuery, start, end,
            orderByComparator);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
     */
    public static YeuCauTrichLuc update(YeuCauTrichLuc yeuCauTrichLuc)
        throws SystemException {
        return getPersistence().update(yeuCauTrichLuc);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
     */
    public static YeuCauTrichLuc update(YeuCauTrichLuc yeuCauTrichLuc,
        ServiceContext serviceContext) throws SystemException {
        return getPersistence().update(yeuCauTrichLuc, serviceContext);
    }

    /**
    * Returns the yeu cau trich luc where soCMNDDoiTuongTrichLuc = &#63; or throws a {@link qldc.pm.tienan.NoSuchYeuCauTrichLucException} if it could not be found.
    *
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @return the matching yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc findBySoCMNDDoiTuongTrichLuc(
        java.lang.String soCMNDDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .findBySoCMNDDoiTuongTrichLuc(soCMNDDoiTuongTrichLuc);
    }

    /**
    * Returns the yeu cau trich luc where soCMNDDoiTuongTrichLuc = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
    *
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @return the matching yeu cau trich luc, or <code>null</code> if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchBySoCMNDDoiTuongTrichLuc(
        java.lang.String soCMNDDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchBySoCMNDDoiTuongTrichLuc(soCMNDDoiTuongTrichLuc);
    }

    /**
    * Returns the yeu cau trich luc where soCMNDDoiTuongTrichLuc = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
    *
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param retrieveFromCache whether to use the finder cache
    * @return the matching yeu cau trich luc, or <code>null</code> if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchBySoCMNDDoiTuongTrichLuc(
        java.lang.String soCMNDDoiTuongTrichLuc, boolean retrieveFromCache)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchBySoCMNDDoiTuongTrichLuc(soCMNDDoiTuongTrichLuc,
            retrieveFromCache);
    }

    /**
    * Removes the yeu cau trich luc where soCMNDDoiTuongTrichLuc = &#63; from the database.
    *
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @return the yeu cau trich luc that was removed
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc removeBySoCMNDDoiTuongTrichLuc(
        java.lang.String soCMNDDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .removeBySoCMNDDoiTuongTrichLuc(soCMNDDoiTuongTrichLuc);
    }

    /**
    * Returns the number of yeu cau trich lucs where soCMNDDoiTuongTrichLuc = &#63;.
    *
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @return the number of matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static int countBySoCMNDDoiTuongTrichLuc(
        java.lang.String soCMNDDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countBySoCMNDDoiTuongTrichLuc(soCMNDDoiTuongTrichLuc);
    }

    /**
    * Returns the yeu cau trich luc where soDinhDanhCaNhanDoiTuongTrichLuc = &#63; or throws a {@link qldc.pm.tienan.NoSuchYeuCauTrichLucException} if it could not be found.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @return the matching yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc findBySoDinhDanhCaNhanDoiTuongTrichLuc(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .findBySoDinhDanhCaNhanDoiTuongTrichLuc(soDinhDanhCaNhanDoiTuongTrichLuc);
    }

    /**
    * Returns the yeu cau trich luc where soDinhDanhCaNhanDoiTuongTrichLuc = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @return the matching yeu cau trich luc, or <code>null</code> if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchBySoDinhDanhCaNhanDoiTuongTrichLuc(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchBySoDinhDanhCaNhanDoiTuongTrichLuc(soDinhDanhCaNhanDoiTuongTrichLuc);
    }

    /**
    * Returns the yeu cau trich luc where soDinhDanhCaNhanDoiTuongTrichLuc = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param retrieveFromCache whether to use the finder cache
    * @return the matching yeu cau trich luc, or <code>null</code> if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchBySoDinhDanhCaNhanDoiTuongTrichLuc(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        boolean retrieveFromCache)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchBySoDinhDanhCaNhanDoiTuongTrichLuc(soDinhDanhCaNhanDoiTuongTrichLuc,
            retrieveFromCache);
    }

    /**
    * Removes the yeu cau trich luc where soDinhDanhCaNhanDoiTuongTrichLuc = &#63; from the database.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @return the yeu cau trich luc that was removed
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc removeBySoDinhDanhCaNhanDoiTuongTrichLuc(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .removeBySoDinhDanhCaNhanDoiTuongTrichLuc(soDinhDanhCaNhanDoiTuongTrichLuc);
    }

    /**
    * Returns the number of yeu cau trich lucs where soDinhDanhCaNhanDoiTuongTrichLuc = &#63;.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @return the number of matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static int countBySoDinhDanhCaNhanDoiTuongTrichLuc(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countBySoDinhDanhCaNhanDoiTuongTrichLuc(soDinhDanhCaNhanDoiTuongTrichLuc);
    }

    /**
    * Returns all the yeu cau trich lucs where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @return the matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc);
    }

    /**
    * Returns a range of all the yeu cau trich lucs where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.YeuCauTrichLucModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param start the lower bound of the range of yeu cau trich lucs
    * @param end the upper bound of the range of yeu cau trich lucs (not inclusive)
    * @return the range of matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc, start, end);
    }

    /**
    * Returns an ordered range of all the yeu cau trich lucs where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.YeuCauTrichLucModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param start the lower bound of the range of yeu cau trich lucs
    * @param end the upper bound of the range of yeu cau trich lucs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc, start, end,
            orderByComparator);
    }

    /**
    * Returns the first yeu cau trich luc in the ordered set where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_First(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_First(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc,
            orderByComparator);
    }

    /**
    * Returns the first yeu cau trich luc in the ordered set where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching yeu cau trich luc, or <code>null</code> if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_First(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_First(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc,
            orderByComparator);
    }

    /**
    * Returns the last yeu cau trich luc in the ordered set where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_Last(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_Last(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc,
            orderByComparator);
    }

    /**
    * Returns the last yeu cau trich luc in the ordered set where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching yeu cau trich luc, or <code>null</code> if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_Last(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_Last(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc,
            orderByComparator);
    }

    /**
    * Returns the yeu cau trich lucs before and after the current yeu cau trich luc in the ordered set where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param yeuCauTrichLucId the primary key of the current yeu cau trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a yeu cau trich luc with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc[] findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_PrevAndNext(
        long yeuCauTrichLucId,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_PrevAndNext(yeuCauTrichLucId,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc, orderByComparator);
    }

    /**
    * Removes all the yeu cau trich lucs where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63; from the database.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @throws SystemException if a system exception occurred
    */
    public static void removeBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence()
            .removeBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc);
    }

    /**
    * Returns the number of yeu cau trich lucs where soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @return the number of matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static int countBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countBySDDCN_NYCTL_CQ_CMND_DTTL_SHK(soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc);
    }

    /**
    * Returns all the yeu cau trich lucs where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @return the matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc);
    }

    /**
    * Returns a range of all the yeu cau trich lucs where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.YeuCauTrichLucModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param start the lower bound of the range of yeu cau trich lucs
    * @param end the upper bound of the range of yeu cau trich lucs (not inclusive)
    * @return the range of matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc, start, end);
    }

    /**
    * Returns an ordered range of all the yeu cau trich lucs where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.YeuCauTrichLucModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param start the lower bound of the range of yeu cau trich lucs
    * @param end the upper bound of the range of yeu cau trich lucs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc, start, end, orderByComparator);
    }

    /**
    * Returns the first yeu cau trich luc in the ordered set where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_First(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_First(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc, orderByComparator);
    }

    /**
    * Returns the first yeu cau trich luc in the ordered set where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching yeu cau trich luc, or <code>null</code> if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_First(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_First(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc, orderByComparator);
    }

    /**
    * Returns the last yeu cau trich luc in the ordered set where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_Last(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_Last(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc, orderByComparator);
    }

    /**
    * Returns the last yeu cau trich luc in the ordered set where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching yeu cau trich luc, or <code>null</code> if a matching yeu cau trich luc could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_Last(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_Last(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc, orderByComparator);
    }

    /**
    * Returns the yeu cau trich lucs before and after the current yeu cau trich luc in the ordered set where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param yeuCauTrichLucId the primary key of the current yeu cau trich luc
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a yeu cau trich luc with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc[] findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_PrevAndNext(
        long yeuCauTrichLucId, java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence()
                   .findBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI_PrevAndNext(yeuCauTrichLucId,
            daTrichLuc, soDinhDanhCaNhanDoiTuongTrichLuc,
            hoVaTenNguoiYeuCauTrichLuc, soCMNDDoiTuongTrichLuc,
            hoVaTenDoiTuongTrichLuc, soSoHoKhauDoiTuongTrichLuc,
            orderByComparator);
    }

    /**
    * Removes all the yeu cau trich lucs where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63; from the database.
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @throws SystemException if a system exception occurred
    */
    public static void removeBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence()
            .removeBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc);
    }

    /**
    * Returns the number of yeu cau trich lucs where daTrichLuc = &#63; and soDinhDanhCaNhanDoiTuongTrichLuc LIKE &#63; and hoVaTenNguoiYeuCauTrichLuc LIKE &#63; and soCMNDDoiTuongTrichLuc LIKE &#63; and hoVaTenDoiTuongTrichLuc LIKE &#63; and soSoHoKhauDoiTuongTrichLuc LIKE &#63;.
    *
    * @param daTrichLuc the da trich luc
    * @param soDinhDanhCaNhanDoiTuongTrichLuc the so dinh danh ca nhan doi tuong trich luc
    * @param hoVaTenNguoiYeuCauTrichLuc the ho va ten nguoi yeu cau trich luc
    * @param soCMNDDoiTuongTrichLuc the so c m n d doi tuong trich luc
    * @param hoVaTenDoiTuongTrichLuc the ho va ten doi tuong trich luc
    * @param soSoHoKhauDoiTuongTrichLuc the so so ho khau doi tuong trich luc
    * @return the number of matching yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static int countBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(
        java.lang.Boolean daTrichLuc,
        java.lang.String soDinhDanhCaNhanDoiTuongTrichLuc,
        java.lang.String hoVaTenNguoiYeuCauTrichLuc,
        java.lang.String soCMNDDoiTuongTrichLuc,
        java.lang.String hoVaTenDoiTuongTrichLuc,
        java.lang.String soSoHoKhauDoiTuongTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countBySDDCN_NYCTL_CQ_CMND_DTTL_SHK_TRANGTHAI(daTrichLuc,
            soDinhDanhCaNhanDoiTuongTrichLuc, hoVaTenNguoiYeuCauTrichLuc,
            soCMNDDoiTuongTrichLuc, hoVaTenDoiTuongTrichLuc,
            soSoHoKhauDoiTuongTrichLuc);
    }

    /**
    * Caches the yeu cau trich luc in the entity cache if it is enabled.
    *
    * @param yeuCauTrichLuc the yeu cau trich luc
    */
    public static void cacheResult(
        qldc.pm.tienan.model.YeuCauTrichLuc yeuCauTrichLuc) {
        getPersistence().cacheResult(yeuCauTrichLuc);
    }

    /**
    * Caches the yeu cau trich lucs in the entity cache if it is enabled.
    *
    * @param yeuCauTrichLucs the yeu cau trich lucs
    */
    public static void cacheResult(
        java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> yeuCauTrichLucs) {
        getPersistence().cacheResult(yeuCauTrichLucs);
    }

    /**
    * Creates a new yeu cau trich luc with the primary key. Does not add the yeu cau trich luc to the database.
    *
    * @param yeuCauTrichLucId the primary key for the new yeu cau trich luc
    * @return the new yeu cau trich luc
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc create(
        long yeuCauTrichLucId) {
        return getPersistence().create(yeuCauTrichLucId);
    }

    /**
    * Removes the yeu cau trich luc with the primary key from the database. Also notifies the appropriate model listeners.
    *
    * @param yeuCauTrichLucId the primary key of the yeu cau trich luc
    * @return the yeu cau trich luc that was removed
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a yeu cau trich luc with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc remove(
        long yeuCauTrichLucId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence().remove(yeuCauTrichLucId);
    }

    public static qldc.pm.tienan.model.YeuCauTrichLuc updateImpl(
        qldc.pm.tienan.model.YeuCauTrichLuc yeuCauTrichLuc)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().updateImpl(yeuCauTrichLuc);
    }

    /**
    * Returns the yeu cau trich luc with the primary key or throws a {@link qldc.pm.tienan.NoSuchYeuCauTrichLucException} if it could not be found.
    *
    * @param yeuCauTrichLucId the primary key of the yeu cau trich luc
    * @return the yeu cau trich luc
    * @throws qldc.pm.tienan.NoSuchYeuCauTrichLucException if a yeu cau trich luc with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc findByPrimaryKey(
        long yeuCauTrichLucId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchYeuCauTrichLucException {
        return getPersistence().findByPrimaryKey(yeuCauTrichLucId);
    }

    /**
    * Returns the yeu cau trich luc with the primary key or returns <code>null</code> if it could not be found.
    *
    * @param yeuCauTrichLucId the primary key of the yeu cau trich luc
    * @return the yeu cau trich luc, or <code>null</code> if a yeu cau trich luc with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.YeuCauTrichLuc fetchByPrimaryKey(
        long yeuCauTrichLucId)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByPrimaryKey(yeuCauTrichLucId);
    }

    /**
    * Returns all the yeu cau trich lucs.
    *
    * @return the yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll();
    }

    /**
    * Returns a range of all the yeu cau trich lucs.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.YeuCauTrichLucModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of yeu cau trich lucs
    * @param end the upper bound of the range of yeu cau trich lucs (not inclusive)
    * @return the range of yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end);
    }

    /**
    * Returns an ordered range of all the yeu cau trich lucs.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.YeuCauTrichLucModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of yeu cau trich lucs
    * @param end the upper bound of the range of yeu cau trich lucs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.YeuCauTrichLuc> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end, orderByComparator);
    }

    /**
    * Removes all the yeu cau trich lucs from the database.
    *
    * @throws SystemException if a system exception occurred
    */
    public static void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeAll();
    }

    /**
    * Returns the number of yeu cau trich lucs.
    *
    * @return the number of yeu cau trich lucs
    * @throws SystemException if a system exception occurred
    */
    public static int countAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countAll();
    }

    public static YeuCauTrichLucPersistence getPersistence() {
        if (_persistence == null) {
            _persistence = (YeuCauTrichLucPersistence) PortletBeanLocatorUtil.locate(qldc.pm.tienan.service.ClpSerializer.getServletContextName(),
                    YeuCauTrichLucPersistence.class.getName());

            ReferenceRegistry.registerReference(YeuCauTrichLucUtil.class,
                "_persistence");
        }

        return _persistence;
    }

    /**
     * @deprecated As of 6.2.0
     */
    public void setPersistence(YeuCauTrichLucPersistence persistence) {
    }
}
